#!/usr/bin/python
#vim:fileencoding=utf-8
import word

class Punctuation(word.Word):
    def __init__(self):
        pass

    def get_type(self):
        return self.to_string()

    def all_forms(self):
        yield self.to_string()

    def forms(self, word):
        return [{}]

class Dot(Punctuation):
    def to_string(self):
        return '.'

class Interrogation(Punctuation):
    def to_string(self):
        return '!'

class Question(Punctuation):
    def to_string(self):
        return '?'

class Comma(Punctuation):
    def to_string(self):
        return ','
